let str = [1, 2, 3].join(',');
console.log(str);